﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace GameView.Services.Dtos.Persons
{
    public class PersonnelAddDto
    {
        /// <summary>
        /// 父级ID
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        [DisplayName("姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Name { get; set; }

        /// <summary>
		/// 身份证号
		/// </summary>
		[DisplayName("身份证号")]
        public string IdCard { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [DisplayName("用户名")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Account { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Images { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string PhoneNumber { get; set; }

        /// <summary>
		/// 角色Id
		/// </summary>
		[DisplayName("角色")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int RoleId { get; set; }
    }
}